package com.example.kindergarten.generator.kindergarten;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 学校表
 * @TableName kg_school
 */
@TableName(value ="kg_school")
public class KgSchool implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 学校名字
     */
    @TableField(value = "school_name")
    private String school_name;

    /**
     * 学校logo
     */
    @TableField(value = "logo")
    private String logo;

    /**
     * 学校地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 学校的联系方式
     */
    @TableField(value = "school_phone")
    private String school_phone;

    /**
     * 相关资质的照片
     */
    @TableField(value = "certificates")
    private String certificates;

    /**
     * 园长id
     */
    @TableField(value = "principalId")
    private Integer principalId;

    /**
     * 园长名字
     */
    @TableField(value = "principalName")
    private String principalName;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updated_at;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_at")
    private Date deleted_at;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 学校名字
     */
    public String getSchool_name() {
        return school_name;
    }

    /**
     * 学校名字
     */
    public void setSchool_name(String school_name) {
        this.school_name = school_name;
    }

    /**
     * 学校logo
     */
    public String getLogo() {
        return logo;
    }

    /**
     * 学校logo
     */
    public void setLogo(String logo) {
        this.logo = logo;
    }

    /**
     * 学校地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 学校地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 经度
     */
    public BigDecimal getLongitude() {
        return longitude;
    }

    /**
     * 经度
     */
    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    /**
     * 纬度
     */
    public BigDecimal getLatitude() {
        return latitude;
    }

    /**
     * 纬度
     */
    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    /**
     * 学校的联系方式
     */
    public String getSchool_phone() {
        return school_phone;
    }

    /**
     * 学校的联系方式
     */
    public void setSchool_phone(String school_phone) {
        this.school_phone = school_phone;
    }

    /**
     * 相关资质的照片
     */
    public String getCertificates() {
        return certificates;
    }

    /**
     * 相关资质的照片
     */
    public void setCertificates(String certificates) {
        this.certificates = certificates;
    }

    /**
     * 园长id
     */
    public Integer getPrincipalId() {
        return principalId;
    }

    /**
     * 园长id
     */
    public void setPrincipalId(Integer principalId) {
        this.principalId = principalId;
    }

    /**
     * 园长名字
     */
    public String getPrincipalName() {
        return principalName;
    }

    /**
     * 园长名字
     */
    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    /**
     * 创建时间
     */
    public Date getCreated_at() {
        return created_at;
    }

    /**
     * 创建时间
     */
    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    /**
     * 更新时间
     */
    public Date getUpdated_at() {
        return updated_at;
    }

    /**
     * 更新时间
     */
    public void setUpdated_at(Date updated_at) {
        this.updated_at = updated_at;
    }

    /**
     * 删除时间
     */
    public Date getDeleted_at() {
        return deleted_at;
    }

    /**
     * 删除时间
     */
    public void setDeleted_at(Date deleted_at) {
        this.deleted_at = deleted_at;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        KgSchool other = (KgSchool) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSchool_name() == null ? other.getSchool_name() == null : this.getSchool_name().equals(other.getSchool_name()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getSchool_phone() == null ? other.getSchool_phone() == null : this.getSchool_phone().equals(other.getSchool_phone()))
            && (this.getCertificates() == null ? other.getCertificates() == null : this.getCertificates().equals(other.getCertificates()))
            && (this.getPrincipalId() == null ? other.getPrincipalId() == null : this.getPrincipalId().equals(other.getPrincipalId()))
            && (this.getPrincipalName() == null ? other.getPrincipalName() == null : this.getPrincipalName().equals(other.getPrincipalName()))
            && (this.getCreated_at() == null ? other.getCreated_at() == null : this.getCreated_at().equals(other.getCreated_at()))
            && (this.getUpdated_at() == null ? other.getUpdated_at() == null : this.getUpdated_at().equals(other.getUpdated_at()))
            && (this.getDeleted_at() == null ? other.getDeleted_at() == null : this.getDeleted_at().equals(other.getDeleted_at()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSchool_name() == null) ? 0 : getSchool_name().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getSchool_phone() == null) ? 0 : getSchool_phone().hashCode());
        result = prime * result + ((getCertificates() == null) ? 0 : getCertificates().hashCode());
        result = prime * result + ((getPrincipalId() == null) ? 0 : getPrincipalId().hashCode());
        result = prime * result + ((getPrincipalName() == null) ? 0 : getPrincipalName().hashCode());
        result = prime * result + ((getCreated_at() == null) ? 0 : getCreated_at().hashCode());
        result = prime * result + ((getUpdated_at() == null) ? 0 : getUpdated_at().hashCode());
        result = prime * result + ((getDeleted_at() == null) ? 0 : getDeleted_at().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", school_name=").append(school_name);
        sb.append(", logo=").append(logo);
        sb.append(", address=").append(address);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", school_phone=").append(school_phone);
        sb.append(", certificates=").append(certificates);
        sb.append(", principalId=").append(principalId);
        sb.append(", principalName=").append(principalName);
        sb.append(", created_at=").append(created_at);
        sb.append(", updated_at=").append(updated_at);
        sb.append(", deleted_at=").append(deleted_at);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}